Skip to content

gh-143070: Use "+" instead of "!" in automatically generated tkinter widget names#151975

Merged
serhiy-storchaka merged 2 commits into
python:mainfrom
serhiy-storchaka:tkinter-widget-name-char
Jul 10, 2026
Merged

gh-143070: Use "+" instead of "!" in automatically generated tkinter widget names#151975
serhiy-storchaka merged 2 commits into
python:mainfrom
serhiy-storchaka:tkinter-widget-name-char

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Jun 23, 2026

Copy link
Copy Markdown
Member

The "!" prefix has a special meaning in the tag expressions of the canvas and text widgets ("!", "&&", "||", "^" and parentheses), so an automatically generated widget name could not be used as a tag. "+" has no special meaning there, nor in option database patterns or Tcl lists, and a user is very unlikely to start an explicit name with it.

…inter widget names

The "!" prefix has a special meaning in the tag expressions of the
canvas and text widgets ("!", "&&", "||", "^" and parentheses), so an
automatically generated widget name could not be used as a tag.  "+" has
no special meaning there, nor in option database patterns or Tcl lists,
and a user is very unlikely to start an explicit name with it.
@serhiy-storchaka serhiy-storchaka merged commit c59c95f into python:main Jul 10, 2026
93 of 95 checks passed
@serhiy-storchaka serhiy-storchaka deleted the tkinter-widget-name-char branch July 10, 2026 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant